package com.ruoyi.labmanage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 实验室信息对象 labinfo
 * 
 * @author lh
 * @date 2025-01-12
 */
public class Labinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，实验室ID */
    private Long labId;

    /** 实验室名称 */
    @Excel(name = "实验室名称")
    private String labName;

    /** 实验室位置 */
    @Excel(name = "实验室位置")
    private String location;

    /** 实验室容纳人数 */
    @Excel(name = "实验室容纳人数")
    private Long capacity;

    /** 实验室资源（JSON格式） */
    @Excel(name = "实验室资源", readConverterExp = "J=SON格式")
    private String resources;

    /** 实验室图片URL */
    @Excel(name = "实验室图片URL")
    private String imageUrl;

    /** 实验室描述 */
    @Excel(name = "实验室描述")
    private String description;

    /** 删除标记：0-未删除，1-已删除 */
    @Excel(name = "删除标记：0-未删除，1-已删除")
    private Integer isDeleted;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 记录创建人 */
    @Excel(name = "记录创建人")
    private String createdBy;

    /** 记录更新人 */
    @Excel(name = "记录更新人")
    private String updatedBy;

    /** 记录删除人 */
    @Excel(name = "记录删除人")
    private String deletedBy;

    /** 记录删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    public void setLabId(Long labId) 
    {
        this.labId = labId;
    }

    public Long getLabId() 
    {
        return labId;
    }
    public void setLabName(String labName) 
    {
        this.labName = labName;
    }

    public String getLabName() 
    {
        return labName;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setCapacity(Long capacity) 
    {
        this.capacity = capacity;
    }

    public Long getCapacity() 
    {
        return capacity;
    }
    public void setResources(String resources) 
    {
        this.resources = resources;
    }

    public String getResources() 
    {
        return resources;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setDeletedBy(String deletedBy) 
    {
        this.deletedBy = deletedBy;
    }

    public String getDeletedBy() 
    {
        return deletedBy;
    }
    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("labId", getLabId())
            .append("labName", getLabName())
            .append("location", getLocation())
            .append("capacity", getCapacity())
            .append("resources", getResources())
            .append("imageUrl", getImageUrl())
            .append("description", getDescription())
            .append("isDeleted", getIsDeleted())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .append("deletedBy", getDeletedBy())
            .append("deletedAt", getDeletedAt())
            .toString();
    }
}
